package com.xidian.yunwudemo.mapper.master;

import com.xidian.yunwudemo.entities.PersonalUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


public interface PersonalUserMapper {

    // 获取所有用户
    List<PersonalUser> getAllUsersInfo();
    // 获取某一用户
    PersonalUser getUserInfoById(Integer id);
    // 添加用户信息
    boolean addUserInfo(PersonalUser user);
    // 更新用户信息
    boolean updateUserInfoById(PersonalUser user);
    // 删除用户信息
    boolean deleteUserInfoById(Integer id);
    // 模糊查询
    List<PersonalUser> filterByName(String userName);
}